<?php
/*{{{LICENSE
+-----------------------------------------------------------------------+
| blogsender                                                            |
+-----------------------------------------------------------------------+
| This program is free software; you can redistribute it and/or modify  |
| it under the terms of the GNU General Public License as published by  |
| the Free Software Foundation. You should have received a copy of the  |
| GNU General Public License along with this program.  If not, see      |
| http://www.gnu.org/licenses/.                                         |
| Copyright (C) 2008-2009. All Rights Reserved.                         |
+-----------------------------------------------------------------------+
| Supports: http://code.google.com/p/blogsender/                        |
+-----------------------------------------------------------------------+
}}}*/

/**
 * @package blogsender
 */

define("BS_ROOT",dirname(__FILE__));

require_once(BS_ROOT."/src/base.class.php");
require_once(BS_ROOT."/src/sender.class.php");


class blogsender{
	static $engines=array("sina","sohu","baidu","hexun","netease");
	public function getEngine($engine){
		$engine = strtolower($engine);
		if(!in_array($engine,self::$engines)){
			return false;
		}
		require_once(BS_ROOT."/src/engine/$engine.class.php");
		return new $engine;
	}
	public function getConfig($config_filename){
	}
}